package com.xyjf.code.service;

import com.alibaba.dubbo.config.annotation.Service;
import com.xyjf.code.api.ICodeCreateService;
import com.xyjf.code.util.IdGeneratorUtil;

@Service
public class CodeCreateServiceImpl implements ICodeCreateService {


    @Override
    public Object getUserId() {
        IdGeneratorUtil idGeneratorUtil=new IdGeneratorUtil(00l,00);
        Long id=idGeneratorUtil.nextId();
        idGeneratorUtil=null;
        return id ;
    }

    @Override
    public Object getOrderId() {
        IdGeneratorUtil idGeneratorUtil=new IdGeneratorUtil(01l,00);
        Long id=idGeneratorUtil.nextId();
        idGeneratorUtil=null;
        return id ;
    }

    @Override
    public Object getId(Long workId) {
        IdGeneratorUtil idGeneratorUtil=new IdGeneratorUtil(workId,00);
        Long id=idGeneratorUtil.nextId();
        idGeneratorUtil=null;
        return id ;
    }
}
